<?php


namespace App\Model;


use EasySwoole\ORM\AbstractModel;

class UserModel extends AbstractModel
{
    protected $tableName = 'user';
    protected $primaryKey = 'id';

    public function getUserInfo($where, $field = "*")
    {
        return $this->where($where)->field($field)->get();
    }

}